package Db::Simpleblog::Users;

# Created by DBIx::Class::Schema::Loader v0.03010 @ 2007-04-14 18:23:52

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("PK::Auto", "Core");
__PACKAGE__->table("users");
__PACKAGE__->add_columns(
  "id",
  {
    data_type => "integer",
    default_value => "nextval('users_id_seq'::regclass)",
    is_nullable => 0,
    size => 4,
  },
  "name",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 32,
  },
  "password",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 32,
  },
  "email",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 255,
  },
  "created_at",
  {
    data_type => "timestamp without time zone",
    default_value => undef,
    is_nullable => 1,
    size => 8,
  },
  "flag",
  {
    data_type => "smallint",
    default_value => undef,
    is_nullable => 1,
    size => 2,
  },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("users_name_key", ["name"]);
__PACKAGE__->has_many(
  "articles",
  "Db::Simpleblog::Articles",
  { "foreign.user_id" => "self.id" },
);

1;

__END__

=head1 NAME

Db::Simpleblog::Users - DBIx::Class::Schema loader for table users

=head1 SYNOPSIS

See L<Simpleblog>

=head1 DESCRIPTION

DBIx::Class::Schema loader for table users

=head1 AUTHOR

chylli,,,

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut
